package com.lc.question.service.impl;

import com.lc.question.service.ITeacherService;
import com.lc.question.dao.ITeacherDao;
import com.lc.question.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teacherService")
public class TeacherServiceImpl implements ITeacherService {

    @Autowired
    ITeacherDao teacherDao;

    @Override
    public List<Teacher> teacherList() {
        List<Teacher> teachers = teacherDao.teacherList();
        return teachers;
    }

    @Override
    public Teacher teacherListById(String tea_Id) {
        Teacher teacher = teacherDao.teacherListById(tea_Id);
        return teacher;
    }

    @Override
    public Teacher teacherById(Teacher teacher) {
        return teacherDao.teacherById(teacher);
    }

    @Override
    public List<Teacher> teacherById2(Teacher teacher) {
        return teacherDao.teacherById2(teacher);
    }

    @Override
    public void addTeacher(Teacher teacher) {
        teacherDao.addTeacher(teacher);
    }

}
